package org.example;

public class Test3
{
    public static void main(String[] args)
    {

    }

    public static void printH()
    {
        System.out.println("how are you?");
    }

    public static int[] copyOfRange(int[] arr, int from, int to)
    {
        int[] new_arr = new int[to - from];
        for (int i = from; i < to; i++)
        {
            new_arr[i - from] = arr[i];
        }
        return new_arr;
    }

    public static void print(int[] arr)
    {
        System.out.print("[ ");
        for (int i = 0; i < arr.length - 1; i++)
        {
            System.out.print(arr[i] + ", ");
        }
        System.out.print(arr[arr.length - 1] + " ]");
    }
}
